home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 38 / giftif.zip / RLETIF.H < prev    next >
C/C++ Source or Header  |  1989-11-22  |  1KB  |  33 lines

  1. /*----------------------------------------------------------------------*/
  2. /* Copyright (c) 1988-1989                        */
  3. /* by CompuServe Inc., Tucson, AZ.  All Rights Reserved            */
  4. /* RLETIF.H can be copied and distributed freely for any        */
  5. /* non-commercial purposes. RLETIF.H can only be incorporated        */
  6. /* into commercial software with the permission of CompuServe Inc.    */
  7. /*----------------------------------------------------------------------*/
  8.  
  9. /* Header file RLETIF.H */
  10.  
  11. /*
  12.  * Routine to repeatedly call compress_huffman_code for all run lengths
  13.  * in a provided rle_line.
  14.  */
  15.  
  16. extern void    compress_huffman_line( rle_line    *emit_line );
  17.  
  18. /*
  19.  * Routine to add bits to the compressed Huffman bit stream (by calling
  20.  * TIF_write_bits) that represent the color and length of run specified.
  21.  */
  22.  
  23. extern void     compress_huffman_code( colors    color_of_run,
  24.                        int    length_of_color );
  25.  
  26. /*
  27.  * Routine to accumulate and/or write to a file the specified compressed bits.
  28.  */
  29.  
  30. extern void    TIF_write_bits( short int    size_to_write,
  31.                 unsigned int    bit_value );
  32.  
  33.